﻿<%@  language="vbscript" codepage="65001" %>
<!--#include file="../../inc/conn.asp"-->
<!--#include file="../../inc/cf.asp"-->
<!--#include file="../../inc/object.asp"-->
<!--#include file="../../inc/function.asp"-->
<% 
dim action,id,table,field,ty,value
action=getForm("action","")
id=getForm("id",0)
table=TurnSql(getForm("table",""))
field=TurnSql(getForm("field",""))
ty=TurnSql(getForm("ty","int"))
value=TurnSql(getForm("value",""))

if IsRemotePost() then
    Response.Write("0")
else
    if action="save" then
        conn.execute("update [" & table & "] set " & field & "='" & value & "' where id=" & id)
    end if
    if table="myclass" then
        set tempCache=new cache
        tempcache.DelAllCache()
    end if
    Response.Write("1")
end if
%>
<%call closeconn %>
